package javaRevise.math;

import java.util.Random;

/**
 * @author WuYongheng
 * @date 2021/12/4
 * @description 演示获取随机数
 */
public class TestRandom {
    public static void main(String[] args) {
        Random random = new Random();
        for (int i = 0; i < 10; i++) {
            int numA = random.nextInt(20);
            System.out.println(numA);
        }
    }
}
